//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a sample for BCGControlBar Library Professional Edition
// Copyright (C) 1998-2014 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions 
// of the accompanying license agreement.
//*******************************************************************************
//
// FilterBarGridCtrl.h : header file
//

#if !defined(AFX_FILTERBARGRIDCTRL_H__FAA3ED71_D929_45A2_BBA5_981D7592E8C6__INCLUDED_)
#define AFX_FILTERBARGRIDCTRL_H__FAA3ED71_D929_45A2_BBA5_981D7592E8C6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CFilterBarGridCtrl window

class CFilterBarGridCtrl : public CBCGPGridCtrl
{
	DECLARE_DYNCREATE(CFilterBarGridCtrl)

// Construction
public:
	CFilterBarGridCtrl();

// Implementation
public:
	virtual ~CFilterBarGridCtrl();

protected:
	virtual BOOL IsItemFilteredByFilterBar (CBCGPGridItem* pItem, int nColumn, const CString& strFilter);
	
	virtual BOOL OnTrackHeader ()
	{
		return FALSE; // do not resize columns inside client area by mouse
	}

	// Generated message map functions
protected:
	//{{AFX_MSG(CFilterBarGridCtrl)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FILTERBARGRIDCTRL_H__FAA3ED71_D929_45A2_BBA5_981D7592E8C6__INCLUDED_)
